package com.order.client.fallback;

import com.carcenter.common.pojo.order.MonthSale;
import com.carcenter.common.result.Result;
import com.order.client.OrderApi;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
public class OrderApiFallback implements OrderApi {

    @Override
    public Result<List<MonthSale>> getMonthSalesByStoreIds(List<Integer> storeIds, String month) {
        return Result.fail("服务调用,发生降级");
    }

    @Override
    public Result<String> invalidAppointment(Integer appointmentId, Integer userId) {
        return Result.fail("服务调用,发生降级");

    }
}
